const express = require('express')

const adminRouter = require('./routers/admin_router')
const userRouter = require('./routers/user_router')
const linkRouter = require('./routers/link_router')

const PORT = 7001
const app = express()

app.use(express.json())
app.use(express.urlencoded({ extended: true }))

app.use(adminRouter)
app.use(userRouter)
app.use(linkRouter)

app.listen(PORT, () => {
  console.log(`listen to port ${PORT}`)
})
